Skip to content

com.inscoper.api.UsbInfo

UsbInfo class contains all USB devices information connected to the device controller. More...

Public Functions

Name
synchronized void delete()
UsbInfo()
Default constructor.
int getVid()
Get the current VID.
void setVid(int vid)
Set the current VID.
int getPid()
Get the current PID.
void setPid(int pid)
Set the current PID.
String getManufacturer()
Get the current manufacturer.
void setManufacturer(String manufacturer)
Set the current manufacturer.
String getProduct()
Get the current product.
void setProduct(String product)
Set the current product.
String getSerialNumber()
Get the current serial number.
void setSerialNumber(String serialNumber)
Set the current serial number.
short getNumInterface()
Get the current interface number.
void setNumInterface(short numInterface)
Set the current interface number.
String getAssociateDriver()
Get the current associated driver.
void setAssociateDriver(String associateDriver)
Set the current associated driver.
short getHub()
Get the current hub number.
void setHub(short hub)
Set the current hub number.
short getPort()
Get the current port number.
void setPort(short port)
Set the current port number.

Protected Functions

Name
UsbInfo(long cPtr, boolean cMemoryOwn)
void finalize()
long getCPtr(UsbInfo obj)
long swigRelease(UsbInfo obj)

Protected Attributes

Name
transient boolean swigCMemOwn

Detailed Description

public class com.inscoper.api.UsbInfo;

UsbInfo class contains all USB devices information connected to the device controller.

This class stores detailed information about a USB device, including its identification (VID/PID), description (Manufacturer/Product), and location (Hub/Port).

Public Functions Documentation

function delete

public synchronized void delete()

function UsbInfo

public UsbInfo()

Default constructor.

Initializes a new instance of the UsbInfo class.

function getVid

public int getVid()

Get the current VID.

Return: The current VID

Retrieves the Vendor ID of the USB device.

function setVid

public void setVid(
    int vid
)

Set the current VID.

Parameters:

  • vid : The current VID

Sets the Vendor ID of the USB device.

function getPid

public int getPid()

Get the current PID.

Return: The current PID

Retrieves the Product ID of the USB device.

function setPid

public void setPid(
    int pid
)

Set the current PID.

Parameters:

  • pid : The current PID

Sets the Product ID of the USB device.

function getManufacturer

public String getManufacturer()

Get the current manufacturer.

Return: The current manufacturer

Retrieves the manufacturer string of the USB device.

function setManufacturer

public void setManufacturer(
    String manufacturer
)

Set the current manufacturer.

Parameters:

  • manufacturer : The current manufacturer

Sets the manufacturer string of the USB device.

function getProduct

public String getProduct()

Get the current product.

Return: The current product

Retrieves the product string of the USB device.

function setProduct

public void setProduct(
    String product
)

Set the current product.

Parameters:

  • product : The current product

Sets the product string of the USB device.

function getSerialNumber

public String getSerialNumber()

Get the current serial number.

Return: The current serial number

Retrieves the serial number of the USB device.

function setSerialNumber

public void setSerialNumber(
    String serialNumber
)

Set the current serial number.

Parameters:

  • serialNumber : The current serial number

Sets the serial number of the USB device.

function getNumInterface

public short getNumInterface()

Get the current interface number.

Return: The current interface number

Retrieves the interface number of the USB device.

function setNumInterface

public void setNumInterface(
    short numInterface
)

Set the current interface number.

Parameters:

  • numInterface : The current interface number

Sets the interface number of the USB device.

function getAssociateDriver

public String getAssociateDriver()

Get the current associated driver.

Return: The current associated driver

Retrieves the name of the driver associated with this USB device.

function setAssociateDriver

public void setAssociateDriver(
    String associateDriver
)

Set the current associated driver.

Parameters:

  • associateDriver : The current associated driver

Sets the name of the driver associated with this USB device.

function getHub

public short getHub()

Get the current hub number.

Return: The current hub number

Retrieves the USB hub number where the device is connected.

function setHub

public void setHub(
    short hub
)

Set the current hub number.

Parameters:

  • hub : The current hub number

Sets the USB hub number where the device is connected.

function getPort

public short getPort()

Get the current port number.

Return: The current port number

Retrieves the port number on the hub where the device is connected.

function setPort

public void setPort(
    short port
)

Set the current port number.

Parameters:

  • port : The current port number

Sets the port number on the hub where the device is connected.

Protected Functions Documentation

function UsbInfo

protected UsbInfo(
    long cPtr,
    boolean cMemoryOwn
)

function finalize

protected void finalize()

function getCPtr

protected static long getCPtr(
    UsbInfo obj
)

function swigRelease

protected static long swigRelease(
    UsbInfo obj
)

Protected Attributes Documentation

variable swigCMemOwn

transient boolean swigCMemOwn;

Updated on 2026-04-02 at 10:55:38 +0200